package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.YkckBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface YkckService extends BaseService<YkckBean> {

	YkckBean getYkckBeanById(String id) throws Exception;
	
	void removeYkckBeanById(String id) throws Exception;
	
	void removeYkckBeanByIds(String ids) throws Exception;
	
	YkckBean saveYkckBean(YkckBean crm) throws Exception;
	
	YkckBean updateYkckBean(YkckBean crm) throws Exception;
	
	Page<YkckBean>  findYkckBeanByCond(YkckBean bean,
			Page<YkckBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveYkckBeanExt(String sql) throws Exception;

	String findYkckBeanExtCreate(String tableName) throws Exception;

	String findYkckBeanExtEdit(String tableName, String id)
			throws Exception;

	String findYkckBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasYkckBeanExtData(String tableName, String id)
			throws Exception;
}